//
//  WXUserModel.h
//  customer
//
//  Created by Holothurian on 2018/11/11.
//  Copyright © 2018年 yinlong. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
/*
 "openid":"OPENID",
 "nickname":"NICKNAME",
 "sex":1,
 "province":"PROVINCE",
 "city":"CITY",
 "country":"COUNTRY",
 "headimgurl": "http://wx.qlogo.cn/mmopen/g3MonUZtNHkdmzicIlibx6iaFqAc56vxLSUfpb6n5WKSYVY0ChQKkiaJSgQ1dZuTOgvLLrhJbERQQ4eMsv84eavHiaiceqxibJxCfHe/0",
 "privilege":[
 "PRIVILEGE1",
 "PRIVILEGE2"
 ],
 "unionid": " o6_bmasdasdsad6_2sgVt7hMZOPfL"
 */
@interface WXUserModel : NSObject

@property (nonatomic,copy)NSString *openid;

@property (nonatomic,copy)NSString *nickname;

@property (nonatomic,copy)NSString *sex;

@property (nonatomic,copy)NSString *province;

@property (nonatomic,copy)NSString *city;

@property (nonatomic,copy)NSString *country;

@property (nonatomic,copy)NSString *headimgurl;

@property (nonatomic,strong)NSArray *privilege;

@property (nonatomic,copy)NSString *unionid;


@end


@interface WXAuthorizationCode : NSObject

/*
 access_token    接口调用凭证
 expires_in    access_token接口调用凭证超时时间，单位（秒）
 refresh_token    用户刷新access_token
 openid    授权用户唯一标识
 scope    用户授权的作用域，使用逗号（,）分隔
 */
@property (nonatomic,copy)NSString *access_token;

@property (nonatomic,copy)NSString *expires_in;

@property (nonatomic,copy)NSString *openid;

@property (nonatomic,copy)NSString *scope;

@property (nonatomic,copy)NSString *unionid;

@property (nonatomic,copy)NSString *refresh_token;

@end

NS_ASSUME_NONNULL_END
